package test.easywan;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Locale;

import org.junit.Test;

public class TEstDate {
	@Test
	public void test() throws ParseException{
		String dt="Thu May 28 18:23:17 CST 2015";

		SimpleDateFormat sdf1= new SimpleDateFormat("EEE MMM dd HH:mm:ss z yyyy", Locale.ENGLISH);

		SimpleDateFormat sdf2= new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

		System.out.println(sdf2.format(sdf1.parse(dt)));  
	}
}
